<template>
  <div id='DetailBottomBar'>
    <div>客服</div>
    <div>店铺</div>
    <div>收藏</div>
    <div @click="cartclick">加入购物车</div>
    <div>购买</div>
  </div>
</template>

<script>
  export default {
    name: 'DetailBottomBar',
    data() {
      return {}
    },
    components: {},
    methods: {
      cartclick() {
        this.$emit('cartclick')
      }
    },
  }
</script>

<style scoped>
  #DetailBottomBar {
    display: flex;
    width: 100%;
    height: 49px;
    line-height: 49px;
    background-color: #fff;
    box-shadow: 0 1px 2px 2px rgba(0, 0, 0, 0.2);
  }

  #DetailBottomBar div {
    flex: 1;
    text-align: center;

  }

  #DetailBottomBar div:nth-child(n+4) {
    flex: 1.4;
    background-color: yellow;
  }

  #DetailBottomBar div:nth-child(5) {
    background-color: pink;
  }
</style>